package models

// casbin权限管理
func CasbinCheckPermission(roleName, path, method string) (bool, error) {
	return casbinEnforcer.Enforce(roleName, path, method)
}

// 添加权限策略
func CasbinAddOnePolicy(sub, obj, act string) (bool, error) {
	return casbinEnforcer.AddPolicy(sub, obj, act)
}
